package com.mezz.bones.im.logic.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * IM会话列表
 * </p>
 *
 * @author mezz
 * @since 2024-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value="更新会话数据信息")
public class ChatConversationLatestDataBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("分页游标ID")
    private Long cursorId;

    @ApiModelProperty(value = "最后一条消息KEY")
    private String lastMsgKey;

    @ApiModelProperty(value = "最后一条消息内容(格式化消息)")
    private String lastMsgContent;

    @ApiModelProperty(value = "最后一条消息序列号")
    private String lastMsgSeq;

    @ApiModelProperty(value = "最后一条消息时间")
    private Date lastMsgTime;


}
